#pragma once

#include "SqliteModel.h"

namespace wlog {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	using namespace TL_Tools;
	using namespace TL_Libs;


	public ref class List : public SqliteModel
	{
	public:
		List(void){
			this->day_at = "";
			this->active = "1";
			this->name = "";
		}
		List(int num) : SqliteModel(num){}

		virtual Hashtable^ GetFields(void) override;
		Hashtable^ GetItemByDayAt(String^ date_add);
		bool IsExist(String^ date_add);

		ArrayList^ GetAll(void);

	public:
		String^ day_at;
		String^ active;
		String^ name;

		static String^ TFORMAT = "yyyy-MM-dd";

	};

}